<template>
    <div class="cloud-village">
        <water-fall :dataList="hotCommentList" />
    </div>
</template>
<script>
import waterFall from './waterfall.vue'
export default {
    name:'cloudVillage',
    components:{
        waterFall
    },
    data() {
        return {
            hotCommentList:[]
        }
    },
    methods:{
        getCloudVillageReviews() {
            let userInfo = JSON.parse(sessionStorage.getItem('userInfo'));
            this.Public.yunCun.cloudVillageReviews().then(res => {
                if(res.code == 200) {
                    this.hotCommentList = res.data
                }
            })
        },
        /* getHotTopic() {
            this.Public.yunCun.getHotTopic({limit:'20',offset:'20'}).then(res => {

            })
        } */
    },
    created() {
        //this.getHotTopic()
        this.getCloudVillageReviews()
    }
}
</script>
<style lang="less" scoped>
    .cloud-village{
        padding-top:90px;
    }
</style>